class HttpErrorEvent {
  final int code;
  final String message;

  HttpErrorEvent(this.code, this.message);
}

///错误编码
class Code {
  ///网络错误
  static const NETWORK_ERROR = -1;

  ///网络超时
  static const NETWORK_TIMEOUT = -2;

  // static final EventBus eventBus = new EventBus();

  static errorHandleFunction(code, message) {
    // eventBus.fire(HttpErrorEvent(code, message));
    return message;
  }
}
